import http from "@/utils/http";
const prefixUrl = {
  queryTimelyFact: "/analysis/summary/view",
  queryCovertBoard: "/analysis/summary/convertBoard",
  queryUserBoard: "/analysis/summary/userBoard",
  queryActiveUser: "/analysis/summary/loginUser",
  queryRetainData: "/analysis/summary/retain",
  queryRepurchase: "/analysis/summary/repurchase",
};
export default {
  role: {
    queryTimelyFact: "POST:" + prefixUrl.queryTimelyFact,
    queryCovertBoard: "POST:" + prefixUrl.queryCovertBoard,
    queryUserBoard: "POST:" + prefixUrl.queryUserBoard,
    queryActiveUser: "POST:" + prefixUrl.queryActiveUser,
    queryRetainData: "POST:" + prefixUrl.queryRetainData,
    queryRepurchase: "POST:" + prefixUrl.queryRepurchase,
  },
  queryTimelyFact(params = {}) {
    return http.post(prefixUrl.queryTimelyFact, params);
  },
  queryCovertBoard(params = {}) {
    return http.post(prefixUrl.queryCovertBoard, params);
  },
  queryUserBoard(params = {}) {
    return http.post(prefixUrl.queryUserBoard, params);
  },
  queryActiveUser(params = {}) {
    return http.post(prefixUrl.queryActiveUser, params);
  },
  queryRetainData(params = {}) {
    return http.post(prefixUrl.queryRetainData, params);
  },
  queryRepurchase(params = {}) {
    return http.post(prefixUrl.queryRepurchase, params);
  },
};
